package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.ProductSizeMapper;
import com.hcb.micro.dto.ProductSize;
import com.hcb.micro.service.IProductSizeService;

@Service("ProductSizeService")
public class ProductSizeServiceImpl implements IProductSizeService {

	@Autowired
	ProductSizeMapper ProductSizeMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return ProductSizeMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ProductSize record) {
		return ProductSizeMapper.insert(record);
	}

	@Override
	public int insertSelective(ProductSize record) {
		return ProductSizeMapper.insertSelective(record);
	}

	@Override
	public ProductSize selectByPrimaryKey(Integer id) {
		return ProductSizeMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ProductSize record) {
		return ProductSizeMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ProductSize record) {
		return ProductSizeMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<ProductSize> selectByPara(Map<String, Object> para) {
		return ProductSizeMapper.selectByPara(para);
	}

}
